package com.krtech.wecard.module.sys.service.impl;

import cn.dev33.satoken.stp.SaTokenInfo;
import cn.dev33.satoken.stp.StpUtil;
import com.krtech.wecard.module.sys.service.SysConfigurationService;
import org.springframework.stereotype.Service;


@Service
public class SysConfigurationServiceImpl implements SysConfigurationService {

    /**
     * 模拟登陆，获得token信息
     */
    @Override
    public SaTokenInfo simulationLogin(){
        long currentTimeMillis = System.currentTimeMillis();
        StpUtil.login(currentTimeMillis);
        SaTokenInfo tokenInfo = StpUtil.getTokenInfo();
        return tokenInfo;
    }
}
